package com.example.interceptor;

import com.example.entity.CarEntity;

import java.util.List;

public class CarsPage<T> extends Page {

    public CarsPage() {
    }
    public CarsPage(Page page) {
        this.pageSize = page.getPageSize();
        this.currentPage = page.getCurrentPage();
        this.startIndex = page.getStartIndex();
        this.totalPage = page.getTotalPage();
        this.totalNumber = page.getTotalNumber();
    }

    public CarsPage(int currentPage, int pageSize) {
        super(currentPage, pageSize);
    }

    private List<T> carEntities;

    public List<T> getCarEntities() {
        return carEntities;
    }

    public void setCarEntities(List<T> carEntities) {
        this.carEntities = carEntities;
    }


}
